
define([
  './themes/lang/' + window.YUFP_SYS_CONFIG.language + '/pages/example/exception/exception.js'
], function (require, exports) {
  // page加载完成后调用ready方法
  exports.ready = function (hashCode, data, cite) {
    yufp.custom.vue({
      el: '#exceptionDemo',
      data: function () {
        return {

        };
      },
      methods: {
        generateException: function () { // 删除
          yufp.service.request({
            method: 'post',
            url: backend.example + '/api/exceptiondemo/exception',
            callback: function (code, message, response) {

            }
          });
        }
      }
    });
  };

  // 消息处理
  exports.onmessage = function (type, message) {

  };

  // page销毁时触发destroy方法
  exports.destroy = function (id, cite) {

  };
});
